<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DAQ_LOG: daq::LoggerFactory Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">DAQ_LOG
   </div>
   <div id="projectbrief">logger</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>daq</b></li><li class="navelem"><a class="el" href="classdaq_1_1LoggerFactory.html">LoggerFactory</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classdaq_1_1LoggerFactory-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">daq::LoggerFactory Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>同步Logger工厂  
 <a href="classdaq_1_1LoggerFactory.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="loggerfactory_8hpp_source.html">loggerfactory.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for daq::LoggerFactory:</div>
<div class="dyncontent">
<div class="center"><img src="classdaq_1_1LoggerFactory__inherit__graph.png" border="0" usemap="#daq_1_1LoggerFactory_inherit__map" alt="Inheritance graph"/></div>
<!-- MAP 0 -->
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for daq::LoggerFactory:</div>
<div class="dyncontent">
<div class="center"><img src="classdaq_1_1LoggerFactory__coll__graph.png" border="0" usemap="#daq_1_1LoggerFactory_coll__map" alt="Collaboration graph"/></div>
<!-- MAP 1 -->
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ad7320171ee45ecceecace4ce086b1eb1"><td class="memItemLeft" align="right" valign="top"><a id="ad7320171ee45ecceecace4ce086b1eb1"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>sptr</b> = std::shared_ptr&lt; <a class="el" href="classdaq_1_1LoggerFactory.html">LoggerFactory</a> &gt;</td></tr>
<tr class="separator:ad7320171ee45ecceecace4ce086b1eb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5e4c7a7700337417663dac8ffeb584ae"><td class="memItemLeft" align="right" valign="top">std::list&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdaq_1_1LoggerFactory.html#a5e4c7a7700337417663dac8ffeb584ae">getAllLoggerName</a> ()</td></tr>
<tr class="memdesc:a5e4c7a7700337417663dac8ffeb584ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">getAllLoggerName 返回已经有的logger的name  <a href="#a5e4c7a7700337417663dac8ffeb584ae">More...</a><br /></td></tr>
<tr class="separator:a5e4c7a7700337417663dac8ffeb584ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad417ef89981205a406dd4fa29e3b4c7a"><td class="memItemLeft" align="right" valign="top">Logger::sptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdaq_1_1LoggerFactory.html#ad417ef89981205a406dd4fa29e3b4c7a">initialize</a> (const std::string &amp;name=&quot;root&quot;, const LogLevel level=LogLevel::TRACE)</td></tr>
<tr class="memdesc:ad417ef89981205a406dd4fa29e3b4c7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize 初始化日志logger  <a href="#ad417ef89981205a406dd4fa29e3b4c7a">More...</a><br /></td></tr>
<tr class="separator:ad417ef89981205a406dd4fa29e3b4c7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1286f3c2d1f58ba2ac2ecc19150b8ae1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdaq_1_1LoggerFactory.html#a1286f3c2d1f58ba2ac2ecc19150b8ae1">initFromFile</a> (const std::string &amp;filename)</td></tr>
<tr class="memdesc:a1286f3c2d1f58ba2ac2ecc19150b8ae1"><td class="mdescLeft">&#160;</td><td class="mdescRight">initFromFile 从文件初始化logger  <a href="#a1286f3c2d1f58ba2ac2ecc19150b8ae1">More...</a><br /></td></tr>
<tr class="separator:a1286f3c2d1f58ba2ac2ecc19150b8ae1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae59e7c1b14d99b023b54974d61050956"><td class="memItemLeft" align="right" valign="top"><a id="ae59e7c1b14d99b023b54974d61050956"></a>
Logger::sptr&#160;</td><td class="memItemRight" valign="bottom"><b>getFirstLogger</b> ()</td></tr>
<tr class="separator:ae59e7c1b14d99b023b54974d61050956"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ab8772fd3e644f8885a4024e0f0c70b49"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classdaq_1_1LoggerFactory.html">LoggerFactory</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdaq_1_1LoggerFactory.html#ab8772fd3e644f8885a4024e0f0c70b49">instance</a> ()</td></tr>
<tr class="memdesc:ab8772fd3e644f8885a4024e0f0c70b49"><td class="mdescLeft">&#160;</td><td class="mdescRight">instance 返回logger工厂实例  <a href="#ab8772fd3e644f8885a4024e0f0c70b49">More...</a><br /></td></tr>
<tr class="separator:ab8772fd3e644f8885a4024e0f0c70b49"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>同步Logger工厂 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a5e4c7a7700337417663dac8ffeb584ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e4c7a7700337417663dac8ffeb584ae">&#9670;&nbsp;</a></span>getAllLoggerName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::list&lt;std::string&gt; daq::LoggerFactory::getAllLoggerName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>getAllLoggerName 返回已经有的logger的name </p>
<dl class="section return"><dt>Returns</dt><dd>loggerNames </dd></dl>

</div>
</div>
<a id="a1286f3c2d1f58ba2ac2ecc19150b8ae1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1286f3c2d1f58ba2ac2ecc19150b8ae1">&#9670;&nbsp;</a></span>initFromFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void daq::LoggerFactory::initFromFile </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>initFromFile 从文件初始化logger </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>文件名 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad417ef89981205a406dd4fa29e3b4c7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad417ef89981205a406dd4fa29e3b4c7a">&#9670;&nbsp;</a></span>initialize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Logger::sptr daq::LoggerFactory::initialize </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;root&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const LogLevel&#160;</td>
          <td class="paramname"><em>level</em> = <code>LogLevel::TRACE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>initialize 初始化日志logger </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>loggr名 </td></tr>
    <tr><td class="paramname">level</td><td>输出日志等级</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>logger的智能指针 </dd></dl>

</div>
</div>
<a id="ab8772fd3e644f8885a4024e0f0c70b49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8772fd3e644f8885a4024e0f0c70b49">&#9670;&nbsp;</a></span>instance()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classdaq_1_1LoggerFactory.html">LoggerFactory</a>* daq::LoggerFactory::instance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>instance 返回logger工厂实例 </p>
<dl class="section return"><dt>Returns</dt><dd>LoggerFactory* </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="loggerfactory_8hpp_source.html">loggerfactory.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
